home
***
CD-ROM
|
disk
|
other
***
search
/
SGI Hot Mix 8
/
Hot Mix 8.iso
/
.all
/
demos
/
Soft_Win
/
InstallIt
(
.txt
)
< prev
next >
Wrap
Text File
|
1994-06-22
|
1KB
|
43 lines
#!/bin/sh
# installit
#
# Derived from: Template supplied by SGI for hot mix installation
# and the SoftPC HotMix scripts.
#
# Author: Anthony Shaughnessy
#
# Created on: 7th April 1994
#
# Sccs ID: @(#)installit.sh 1.4 4/19/94
#
# Coding Stds.: 2.0
#
# Purpose: To act as a wrapper for the installation process from
# the hot mix CD. This script is the top level. It calls
# xwsh to open a window to run the InstallIt2 script
# as root. This script is supposed to be called when the
# user presses the install button on the hot mix CD.
#
# Change the value of SOFTWINDIR to whatever is relevant for SoftWindows on the
# hot mix CD. The scripts
# must be held in the same directory as the SoftWindows package files.
# We have not been told by SGI what this directory should be, and so we must
# leave it to them to change this value.
SOFTWINDIR=${SOFTWINDIR:=$HOTMIXDIR/demos/Soft_Win} export SOFTWINDIR
SWINHOME=/usr/lib/SoftWindows export SWINHOME
# Get the real user id before we su to root, because we won't be able to
# afterwards.
USERID=`id | cut -d'(' -f2 | cut -d')' -f1` export USERID
GROUPID=`id | cut -d'(' -f3 | cut -d')' -f1` export GROUPID
xwsh -bg royalblue -fg white \
-geom 80x20+100+100 -cursorfg violetred1 -cursorbg violetred1 \
-title "Install SoftWindows" \
-e /bin/sh -c \
"echo You must be root to install SoftWindows...; \
cd $SOFTWINDIR ; \
su root -c './InstallIt2'"